package com.me.bbs.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.me.bbs.vo.UserVO;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author Liming Wang
 * @Description
 * @Create 2023/1/13 13:36
 */
@Data
public class PostDTO {
    private static final long serialVersionUID = 1L;

    @TableId
    private Long postId;

    private String title;

    private String content;

    private UserDTO author;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    private LocalDateTime lastReplyAt;
    private ForumDTO forum;

    private Integer viewCount;

    private Integer commentCount;
    private String  htmlContent;
    private Integer likeCount;
    private Boolean isLike;
    private Boolean isCollected;
    private Integer collectCount;
    private String brief;

}
